<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta http-equiv="Pragma" content="no-cache" />
		<title>关闭业务单-我的易安</title>
		<%@ include file="/user_comm.jsp"%>
		<link rel="stylesheet"
			href="http://a.tbcdn.cn/apps/sell/1.0/publish_detail_ke.css?t=20110128editor.css" />
		<link href="<%=request.getContextPath()%>/css/prop.css"
			type="text/css" rel="stylesheet" />
		<!-- script start -->
		<script>
function checkSubmit(){
	return false;
}

function operChange(showflag){
	if(showflag==true)
		$d("tr_remark").style.display="block";
	else
		$d("tr_remark").style.display="none";
}
</script>
		<!-- script end -->
	</head>
	<body>
		<%@ include file="/user_top.jsp"%>
		<div class="realCer">
			<!--导航-->
			<!--主体部分start-->
			<div class="realMain clearfix mt10">
				<%@ include file="/user_menu.jsp"%>
				<div class="realRight ml10 Buyer">
					<div class="mybox">
						<div class="mytit">
							关闭/结束业务单
						</div>
						<div class="con">
							<s:form name="formpage" action="busiInfo_close" namespace="/">
								<s:hidden name="busiInfo.busiNo" value="%{#request.busiInfo.busiNo}" />
								<s:hidden id="tab" name="tab" value="%{#request.tabIndex}" />
								<%@ include file="simpleBusiInfo.jsp"%>	
								<table class="basicInfor">
									<!-- 发货方关闭业务单 -->
									<s:if test="#request.busiInfo.sendUserid==#request.userId">
										<tr>
											<s:if test='#request.busiInfo.status=="01"'>
												<td align="right" valign="top" width="100" rowspan="3">
													原&nbsp;&nbsp;因：
												</td>
											</s:if>
											<s:else>
												<td align="right" valign="top" width="100" rowspan="2">
													原&nbsp;&nbsp;因：
												</td>
											</s:else>
											<td>
												<input type="radio" value="20" name="busiOper.operCode"
													onclick="operChange(false);" />
												货物返回，关闭交付
											</td>
										</tr>
										<s:if test='#request.busiInfo.status=="01"'>
											<tr>
												<td>
													<input type="radio" value="21" name="busiOper.operCode"
														onclick="operChange(false);" />
													信处录入错误，关闭重新创建
													<font color="gray">此操作可重新激活封条</font>
												</td>
											</tr>
										</s:if>
										<tr>
											<td>
												<input type="radio" value="29" name="busiOper.operCode"
													onclick="operChange(true);" />
												其他
											</td>
										</tr>
									</s:if>

									<!-- 收货方结束业务单 -->
									<s:if test="#request.busiInfo.recvUserid==#request.userId">
										<tr>
											<td align="right" valign="top" width="100" rowspan="2">
												原&nbsp;&nbsp;因：
											</td>
											<td>
												<input type="radio" value="30" name="busiOper.operCode"
													onclick="operChange(false);" />
												收到货物，封条不存在
											</td>
										</tr>
										<tr>
											<td>
												<input type="radio" value="39" name="busiOper.operCode"
													onclick="operChange(true);" />
												其他
											</td>
										</tr>
									</s:if>

									<tr id="tr_remark" style="display: none">
										<td align="right" valign="top">
											<label for="operInfo">
												备&nbsp;&nbsp;注：
											</label>
										</td>
										<td>
											<textarea id="operInfo" name="busiOper.operInfo" cols="50"
											rows="5" style="width: 400px; height: 80px;">${busiOper.operInfo }</textarea>
										</td>
									</tr>
									<tr>
										<td></td>
										<td>
											<a href="javascript:$('busiInfo_close').submit();" class="at_but b_1_y" id="reg_sub"><u></u>确认</a>
											<a href="javascript:history.go(-1);" class="at_but b_1_y" id="reg_sub"><u></u>取消</a>
										</td>
									</tr>
								</table>

							</s:form>
						</div>
					</div>
					<div>
					</div>
					<!--主体部分end-->
				</div>
			</div>
		</div>
		<!--底部 start-->
		<%@ include file="/user_button.jsp"%>
		<!--底部end-->
	</body>
</html>
